package com.sec.moveFile.document.repository;

import com.sec.moveFile.document.domain.SystemDocumentDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 683T0090
 */
@Repository
public interface SystemDocumentRepository extends JpaRepository<SystemDocumentDO, String>,
        JpaSpecificationExecutor<SystemDocumentDO> {

    List<SystemDocumentDO> findByRefId(String refId);

    List<SystemDocumentDO> findByIdIn(List<String> ids);

    void deleteAllByIdIn(List<String> ids);

    List<SystemDocumentDO> findByRefIdIn(List<String> refIds);

}
